package com.zzl.bonds.ticket.constant.type;

/**
 * @author : spp
 * @date : 2021/12/7 13:12
 */
public enum CirculationEnterpriseFlagStatusEnum {

    /**
     * 指定流转企业
     */
    YES(1, "是"),

    /**
     * 未指定流转企业
     */
    NO(0, "否");

    private Integer code;
    private String value;


    CirculationEnterpriseFlagStatusEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(Integer code) {
        for (CirculationEnterpriseFlagStatusEnum statusEnum : CirculationEnterpriseFlagStatusEnum.values()) {
            if (statusEnum.code.equals(code)) {
                return statusEnum.value;
            }
        }
        return "";
    }


    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
